export default {
  login: {
    url: '/admin/login',
    method: 'POST',
    RASsend: 'password',
    isSetToken: true,
  },
  register: {
    url: '/admin/register',
    method: 'POST',
    RASsend: 'password',
    isSetToken: true,
  },
  index: {
    url: '/index',
    method: 'GET',
  },
  getKey: {
    url: '/keys',
    method: 'GET',
  },
  articles: {
    url: '/api/rest/articles',
    method: 'GET',
  },
  article: {
    url: '/api/rest/article/:id',
    method: 'GET',
    rest: true,
  },
  postArticle: {
    url: '/api/rest/article',
    method: 'POST',
  },
  uploadArticle: {
    url: '/upload/article',
    method: 'POST',
  },
  uploadUser: {
    url: '/upload/user',
    method: 'POST',
  },
  columns: {
    url: '/api/rest/columns',
    method: 'GET',
  },
  postColumns: {
    url: '/api/rest/columns',
    method: 'POST',
  },
  postConments: {
    url: '/api/rest/conments',
    method: 'POST',
  },
  userInfo: {
    url: '/user',
    method: 'GET',
  },
  putUserInfo: {
    url: '/user',
    method: 'PUT',
  },
  postArticleLike: {
    rest: true,
    url: '/articles/:id',
    method: 'post',
  },
}
